<template>
  <div class="introduce">
    <CustomTitle title="培训介绍"></CustomTitle>
    <div class="introduceInfo">
      <div class="title">简介</div>
      <div class="content">{{ detailsData?.description }}</div>
    </div>
    <div class="introduceInfo">
      <div class="title">流程</div>
      <div class="content">{{ detailsData?.flow || '无' }}</div>
    </div>
    <div class="introduceInfo" v-if="detailsData?.question || detailsData.qrImg">
      <div class="title">班级群答疑解惑</div>
      <div class="content">{{ detailsData?.question }}</div>
      <img
        v-if="detailsData.qrImg"
        class="qrImg"
        :src="`${$basAssetsUrl}${detailsData.qrImg}`"
        alt=""
      />
    </div>
  </div>
</template>

<script>
import CustomTitle from '@/components/CustomTitle.vue';
export default {
  components: { CustomTitle },
  props: {
    detailsData: {
      type: Object,
      default: null,
    },
  },
  data() {
    return {
    };
  },
  created() {},
};
</script>
<style lang="scss" scoped>
.basePageBox {
  .introduce {
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: $box-shadow;
    margin-top: 32px;
    box-sizing: border-box;
    padding: 20px 20px 60px;
    .introduceInfo {
      margin-top: 24px;
      .title {
        font-size: 16px;
        font-weight: 600;
        line-height: 22px;
        color: $text-color;
      }
      .content {
        margin-top: 12px;
        padding-left: 12px;
        box-sizing: border-box;
        font-size: 16px;
        font-weight: 400;
        line-height: 24px;
        color: $text-color-secondary;
      }
      .qrImg {
        width: 106px;
        height: 106px;
        margin-top: 12px;
        margin-left: 12px;
      }
    }
  }
}
</style>
